package com.catmiw.wyz;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Reader;
import java.io.BufferedReader;

public class TestWeb {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		BufferedReader fi=new BufferedReader(new FileReader("D:/����׿�Ľ���/��ѧϰѵ��/20�������.txt"));
		String temp=null;
		FileWriter fo=new FileWriter("D:/����׿�Ľ���/��ѧϰѵ��/���ֻ�����.txt");
		
		int count=0;
		while((temp=fi.readLine())!=null){
			System.out.println(temp);
			String tt="";
			for (char c:temp.toCharArray()){
				if (c<'a'||c>'z')
					tt+=c;
			}
			if (tt.length()<=4){
				fo.append(tt).append("\r\n");
				count++;
			}
		}
		fi.close();
		fo.close();
		System.out.println(count);
	}

}
